/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVA-Data-Structures-and-Algorithms PROJECT
 * All Rights Reserved.
 */

package 基数;

import 工具.Unit;

public class RadixTest {
    public static void main(String[] args) {
//        for (int i : Radix.sort(Unit.intArr(),2)) {
//            System.out.print(i + " ");
//        }

        int[] arr = Unit.randomArr();

        long s = System.currentTimeMillis();
        Radix.sort(arr, 8);
        long e = System.currentTimeMillis();
        System.out.println(e - s + "ms");// 7ms 7ms 7ms !!! 8w数据
        // 347ms 347ms 342ms ！！800w数据
    }
}